COMPILER=g++
#Also add libs for each new library
LIB=-L/../lib/ -lcpptest -lconnection
INCLUDES=-I../src/connection
FILES=$(wildcard *.cpp)
OBJS=$(FILES:.cpp=.o)
TARGET=unit_tests

all: $(TARGET)

$(OBJS): $(FILES)
	$(COMPILER) $(INCLUDES) -c -o $@ $< $(LIB)

$(TARGET): $(OBJS)
	$(COMPILER) $(INCLUDES) $(OBJS) $(LIB) -o $(TARGET)

clean:
	rm $(OBJS)
	rm $(TARGET)
